package com.pig4cloud.mall.product.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/11/25 3:51 下午
 */
@Data
public class TreeNode {

	protected long catId;

	protected long parentCid;

	protected List<TreeNode> children = new ArrayList<TreeNode>();

	protected boolean hasChildren;

	public void add(TreeNode node) {
		children.add(node);
	}

}
